package org.learn.file.transformation;

import java.io.BufferedReader;
import java.io.FileReader;

public class CodeQuestion {
    public static void main(String[] args) throws Exception{
        //看一个中文乱码问题

        //默认读取编码是utf-8
        String filePath = "d:\\a.txt";
        BufferedReader br = new BufferedReader(new FileReader(filePath));

        String s = br.readLine();
        System.out.println("读取到的内容" + s);
        br.close();
    }
}
